/*
 * Copyright (c) 2016 咖枯 <kaku201313@163.com | 3772304@qq.com>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package cn.manyufun.myf.api;

public class ApiConstants {
    public static final String API_HOST = "http://47.97.169.135/ManyuFan/api/";
    public static final String H5_HOST = "http://47.97.169.135:8080/h5/article/";
    public static final String h5_EXT = "?from=android";

    /**
     * 新闻id获取类型
     *
     * @param id 新闻id
     * @return 新闻类型
     */
    public static String getType(String id) {
        return "";
    }

    /**
     * 获取对应的host
     *
     * @param hostType host类型
     * @return host
     */
    public static String getHost(int hostType) {
        //        switch (hostType) {
//            case HostType.manyufun:
//                host = API_HOST;
//                break;
//        }
        return API_HOST;
    }
}
